/**
 * 前置获取树所选节点
 */
function main(defaultParams) {
    const self = this;
    const treeEle = this.$$("tree_panel_eh3nya");
    // 获取树所选节点
    const treeSelectedNode = treeEle.$$getSelection().selectedKeys[0];
    let treeSelectFlag = false;
    if (!treeSelectedNode) {
        self.$message.warning("请选择一个场所");
        treeSelectFlag = false;
    }else {
        treeSelectFlag = true;
    }
    return treeSelectFlag;
}
